package cn.test.my.excel.test1;

import java.math.BigDecimal;

/**
 *
 * MR012-1 - 场外衍生品客户情况统计表
 *
 * @author summit
 * @since 2021/8/5 14:53
 */
public class MonthReportMr0121DTO {

	/**
	 * 本月末-产业客户
	 */
	private BigDecimal indMonthEnd;

	/**
	 * 本月末-其他机构
	 */
	private BigDecimal otherMonthEnd;

	/**
	 * 上月末-产业客户
	 */
	private BigDecimal indMonthLast;

	/**
	 * 上月末-其他机构
	 */
	private BigDecimal otherMonthLast;

	public MonthReportMr0121DTO() {
		BigDecimal zero = BigDecimal.ZERO.setScale(2, BigDecimal.ROUND_HALF_UP);
		setIndMonthEnd(zero);
		setOtherMonthEnd(zero);
		setIndMonthLast(zero);
		setOtherMonthEnd(zero);
	}

	public void handle() {
		setIndMonthEnd(getIndMonthEnd().setScale(2, BigDecimal.ROUND_HALF_UP));
		setOtherMonthEnd(getOtherMonthEnd().setScale(2, BigDecimal.ROUND_HALF_UP));
		setIndMonthLast(getIndMonthLast().setScale(2, BigDecimal.ROUND_HALF_UP));
		setOtherMonthEnd(getOtherMonthEnd().setScale(2, BigDecimal.ROUND_HALF_UP));
	}

	public BigDecimal getIndMonthEnd() {
		return indMonthEnd;
	}

	public void setIndMonthEnd(BigDecimal indMonthEnd) {
		this.indMonthEnd = indMonthEnd;
	}

	public BigDecimal getOtherMonthEnd() {
		return otherMonthEnd;
	}

	public void setOtherMonthEnd(BigDecimal otherMonthEnd) {
		this.otherMonthEnd = otherMonthEnd;
	}

	public BigDecimal getIndMonthLast() {
		return indMonthLast;
	}

	public void setIndMonthLast(BigDecimal indMonthLast) {
		this.indMonthLast = indMonthLast;
	}

	public BigDecimal getOtherMonthLast() {
		return otherMonthLast;
	}

	public void setOtherMonthLast(BigDecimal otherMonthLast) {
		this.otherMonthLast = otherMonthLast;
	}
}
